<!--this page will be used to change the users password-->
<?php
//written by: Marcos Resendiz
session_start();
require_once 'php_includes.php';

//Make sure logged in
checkLogin();

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Payroll and Timesheet Management Website</title>
    <link rel="stylesheet" type="text/css" href="styles.css" />
    <script type="text/javascript" src="pwcheck.js">
    </script>
</head>
<body>
   <?php writeHeader(); ?>
    <p>
       <span class="pageheader">Employee Control Panel:</span>
    </p>
    
    <p>
    Change Password:
    </p>
    
	<form action ="update_pass.php" method="post">
	<div class="left_side">
		Old Password:<br/>
		New Password:<br/>
		New Password Confirm:<br/>
	</div>
	<div class="middle_cont">
		<input type="password" name="old_pass" id="old_pass"/><br/> <!--Will send old PW to Update_Pass.php-->
		<input type="password" name="new_pass1" id="new_pass1" /><br/><!--Will send new PW to Update_Pass.php-->
		<input type="password" id="new_pass2" /><br/>
	</div>
	<p>
		<!--Will call checkPasswordMatch to make sure new password and verification password are the same-->
		<input type="submit" value="Submit" class="button" onclick="return checkPasswordMatch();" />
	</p>
	</form>
	
</body>
</html>
